package com.googlecode.transmutant.spring

import org.springframework.beans.factory.FactoryBean;

class StepFactoryBean implements FactoryBean<StepWrapper> {
	
	def name
	def ref
	def clazz
	def order
	def stepMethods
	def outs
	def ins
	def captures
	def capture

	@Override
	public StepWrapper getObject() throws Exception {
		def stepWrapper = new StepWrapper()
		stepWrapper.name = name
		stepWrapper.ref = ref
		stepWrapper.clazz = clazz
		stepWrapper.order = order
		stepWrapper.stepMethods = stepMethods
		stepWrapper.ins = ins
		stepWrapper.captures = captures
		stepWrapper.capture = capture
		return stepWrapper
	}

	@Override
	public Class<StepWrapper> getObjectType() {
		return StepWrapper.class;
	}

	@Override
	public boolean isSingleton() {
		return false;
	}

}
